<?php

class IndexController extends Zend_Controller_Action {

    public function init() {
        $this->view->baseUrl = $this->_request->getBaseUrl();
    }

    public function indexAction() {
        $this->view->title = "Home";
        
        $actorDB = new Application_Model_Actor;
        $this->view->actors = $actorDB->getActor(1);
        
        $movieDB = new Application_Model_Movie;
        $this->view->movie = $movieDB->getMovie(1);
        
        
        $commentDB = new Application_Model_Comment;
        $this->view->lastComments = $commentDB->getLastComments();
        $this->view->top5 = $movieDB->getTop5();
        
         $showBD = new Application_Model_ShowingAt;
         $this->view->shows = $showBD->getShowsD("2012-04-09%"); 
    }

    public function aboutusAction() {
        $this->view->title = "About us";
    }

}

